import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import store from "./store";

const root = ReactDOM.createRoot(document.getElementById("root"));

function render() {
  root.render(
    <React.StrictMode>
      <App />
    </React.StrictMode>
  );
}

render();

// 监听redux的状态的变化，一旦发送变化就会触发函数
store.subscribe(render);
